import 'package:fish_redux/fish_redux.dart';
import 'package:school_safe_teacher/studentsReview/entity/studentReviewEntity.dart';

//TODO replace with your own action
enum studentsReviewAction {
  action,
  success,
  complete,
  onrefresh,
  onload,
  onreview,
}

class studentsReviewActionCreator {
  static Action onAction() {
    return const Action(studentsReviewAction.action);
  }

  static Action onSuccess(List<studentReviewEntity> newsList) {
    return Action(studentsReviewAction.success,payload: newsList);
  }

  static Action onComplete() {
    return Action(studentsReviewAction.complete);
  }
  static Action onRefresh() {
    return Action(studentsReviewAction.onrefresh);
  }
  static Action onload() {
    return Action(studentsReviewAction.onload);
  }
  static Action onreview(int type,String memberId) {
    return Action(studentsReviewAction.onreview,payload: {"type":type,"memberId":memberId});
  }
}
